package com.test.log;

import org.springframework.aop.MethodBeforeAdvice;
import org.springframework.stereotype.Component;

import java.lang.reflect.Method;

public class Log implements MethodBeforeAdvice {
    // method 要执行的目标对象的方法
    // Objects 参数
    //target 目标对象
    public void before(Method method, Object[] objects, Object o) throws Throwable {
        System.out.println(o.getClass().getName() + "的" + method.getName() + "被执行了");

    }
}
